package {{packageName}}

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * MyBatisPlus配置
 *
 * @author jinghong
 */
@Configuration
class MyBatisPlusConfig {

    /**
     * 插件配置
     */
    @Bean
    fun mybatisPlusInterceptor() = MybatisPlusInterceptor().apply {
        // 分页插件
        addInnerInterceptor(PaginationInnerInterceptor())
    }

}